package com.example.chesspowerup;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class MainMenu extends Activity implements OnClickListener {

	Button play, achiv, tp, help;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu);
		
		play = (Button) findViewById(R.id.bPlay);
		achiv = (Button) findViewById(R.id.bAchiv);
		tp = (Button) findViewById(R.id.bTopPlayer);
		help = (Button) findViewById(R.id.bHelp);
		play.setOnClickListener(this);
		achiv.setOnClickListener(this);
		tp.setOnClickListener(this);
		help.setOnClickListener(this);
		
		
		
		//requestWindowFeature(Window.FEATURE_NO_TITLE);
		//getWindow().setFlags(WindowManager.LayoutParams., mask)
	}

	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()){
			case R.id.bPlay:
				Intent playIt = new Intent("com.example.chesspowerup.PLAYGROUND");
				startActivity(playIt);
				break;
		}
		
		//game = new Game(this);
		
	//	board = new Board(this);
	//	board.setBackgroundColor(Color.WHITE);
	//	setContentView(board);
		
		//requestWindowFeature(Window.FEATURE_NO_TITLE);
		//getWindow().setFlags(WindowManager.LayoutParams., mask)
	}

	
	int number = 0;
}
